/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.impl.BaseModelImpl;

import java.io.Serializable;

import java.lang.reflect.Proxy;

/**
 * @author Wole Adetiba
 */
public class Contact_InformationClp extends BaseModelImpl<Contact_Information>
	implements Contact_Information {
	public Contact_InformationClp() {
	}

	public String getPrimaryKey() {
		return _applicationId;
	}

	public void setPrimaryKey(String pk) {
		setApplicationId(pk);
	}

	public Serializable getPrimaryKeyObj() {
		return _applicationId;
	}

	public String getApplicationId() {
		return _applicationId;
	}

	public void setApplicationId(String applicationId) {
		_applicationId = applicationId;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getHouseNo() {
		return _houseNo;
	}

	public void setHouseNo(String houseNo) {
		_houseNo = houseNo;
	}

	public String getAddressLine1() {
		return _addressLine1;
	}

	public void setAddressLine1(String addressLine1) {
		_addressLine1 = addressLine1;
	}

	public String getAddressLine2() {
		return _addressLine2;
	}

	public void setAddressLine2(String addressLine2) {
		_addressLine2 = addressLine2;
	}

	public String getCity() {
		return _city;
	}

	public void setCity(String city) {
		_city = city;
	}

	public String getState() {
		return _state;
	}

	public void setState(String state) {
		_state = state;
	}

	public String getCountry() {
		return _country;
	}

	public void setCountry(String country) {
		_country = country;
	}

	public String getPhoneHome() {
		return _phoneHome;
	}

	public void setPhoneHome(String phoneHome) {
		_phoneHome = phoneHome;
	}

	public String getPhoneOffice() {
		return _phoneOffice;
	}

	public void setPhoneOffice(String phoneOffice) {
		_phoneOffice = phoneOffice;
	}

	public String getPhoneMobile() {
		return _phoneMobile;
	}

	public void setPhoneMobile(String phoneMobile) {
		_phoneMobile = phoneMobile;
	}

	public String getFax() {
		return _fax;
	}

	public void setFax(String fax) {
		_fax = fax;
	}

	public String getPoBox() {
		return _poBox;
	}

	public void setPoBox(String poBox) {
		_poBox = poBox;
	}

	public String getLga() {
		return _lga;
	}

	public void setLga(String lga) {
		_lga = lga;
	}

	public String getEmailAddress() {
		return _emailAddress;
	}

	public void setEmailAddress(String emailAddress) {
		_emailAddress = emailAddress;
	}

	public String getOtherInformation() {
		return _otherInformation;
	}

	public void setOtherInformation(String otherInformation) {
		_otherInformation = otherInformation;
	}

	public Contact_Information toEscapedModel() {
		if (isEscapedModel()) {
			return this;
		}
		else {
			return (Contact_Information)Proxy.newProxyInstance(Contact_Information.class.getClassLoader(),
				new Class[] { Contact_Information.class },
				new AutoEscapeBeanHandler(this));
		}
	}

	public Object clone() {
		Contact_InformationClp clone = new Contact_InformationClp();

		clone.setApplicationId(getApplicationId());
		clone.setUserId(getUserId());
		clone.setHouseNo(getHouseNo());
		clone.setAddressLine1(getAddressLine1());
		clone.setAddressLine2(getAddressLine2());
		clone.setCity(getCity());
		clone.setState(getState());
		clone.setCountry(getCountry());
		clone.setPhoneHome(getPhoneHome());
		clone.setPhoneOffice(getPhoneOffice());
		clone.setPhoneMobile(getPhoneMobile());
		clone.setFax(getFax());
		clone.setPoBox(getPoBox());
		clone.setLga(getLga());
		clone.setEmailAddress(getEmailAddress());
		clone.setOtherInformation(getOtherInformation());

		return clone;
	}

	public int compareTo(Contact_Information contact_Information) {
		int value = 0;

		value = getApplicationId()
					.compareTo(contact_Information.getApplicationId());

		if (value != 0) {
			return value;
		}

		return 0;
	}

	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}

		Contact_InformationClp contact_Information = null;

		try {
			contact_Information = (Contact_InformationClp)obj;
		}
		catch (ClassCastException cce) {
			return false;
		}

		String pk = contact_Information.getPrimaryKey();

		if (getPrimaryKey().equals(pk)) {
			return true;
		}
		else {
			return false;
		}
	}

	public int hashCode() {
		return getPrimaryKey().hashCode();
	}

	public String toString() {
		StringBundler sb = new StringBundler(33);

		sb.append("{applicationId=");
		sb.append(getApplicationId());
		sb.append(", userId=");
		sb.append(getUserId());
		sb.append(", houseNo=");
		sb.append(getHouseNo());
		sb.append(", addressLine1=");
		sb.append(getAddressLine1());
		sb.append(", addressLine2=");
		sb.append(getAddressLine2());
		sb.append(", city=");
		sb.append(getCity());
		sb.append(", state=");
		sb.append(getState());
		sb.append(", country=");
		sb.append(getCountry());
		sb.append(", phoneHome=");
		sb.append(getPhoneHome());
		sb.append(", phoneOffice=");
		sb.append(getPhoneOffice());
		sb.append(", phoneMobile=");
		sb.append(getPhoneMobile());
		sb.append(", fax=");
		sb.append(getFax());
		sb.append(", poBox=");
		sb.append(getPoBox());
		sb.append(", lga=");
		sb.append(getLga());
		sb.append(", emailAddress=");
		sb.append(getEmailAddress());
		sb.append(", otherInformation=");
		sb.append(getOtherInformation());
		sb.append("}");

		return sb.toString();
	}

	public String toXmlString() {
		StringBundler sb = new StringBundler(52);

		sb.append("<model><model-name>");
		sb.append("com.crossriver.crgis.database.model.Contact_Information");
		sb.append("</model-name>");

		sb.append(
			"<column><column-name>applicationId</column-name><column-value><![CDATA[");
		sb.append(getApplicationId());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>userId</column-name><column-value><![CDATA[");
		sb.append(getUserId());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>houseNo</column-name><column-value><![CDATA[");
		sb.append(getHouseNo());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>addressLine1</column-name><column-value><![CDATA[");
		sb.append(getAddressLine1());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>addressLine2</column-name><column-value><![CDATA[");
		sb.append(getAddressLine2());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>city</column-name><column-value><![CDATA[");
		sb.append(getCity());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>state</column-name><column-value><![CDATA[");
		sb.append(getState());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>country</column-name><column-value><![CDATA[");
		sb.append(getCountry());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>phoneHome</column-name><column-value><![CDATA[");
		sb.append(getPhoneHome());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>phoneOffice</column-name><column-value><![CDATA[");
		sb.append(getPhoneOffice());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>phoneMobile</column-name><column-value><![CDATA[");
		sb.append(getPhoneMobile());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>fax</column-name><column-value><![CDATA[");
		sb.append(getFax());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>poBox</column-name><column-value><![CDATA[");
		sb.append(getPoBox());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>lga</column-name><column-value><![CDATA[");
		sb.append(getLga());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>emailAddress</column-name><column-value><![CDATA[");
		sb.append(getEmailAddress());
		sb.append("]]></column-value></column>");
		sb.append(
			"<column><column-name>otherInformation</column-name><column-value><![CDATA[");
		sb.append(getOtherInformation());
		sb.append("]]></column-value></column>");

		sb.append("</model>");

		return sb.toString();
	}

	private String _applicationId;
	private String _userId;
	private String _houseNo;
	private String _addressLine1;
	private String _addressLine2;
	private String _city;
	private String _state;
	private String _country;
	private String _phoneHome;
	private String _phoneOffice;
	private String _phoneMobile;
	private String _fax;
	private String _poBox;
	private String _lga;
	private String _emailAddress;
	private String _otherInformation;
}